<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8" >
		<title></title>
	</head>
	<body>
		<form method="post" action="/food/addfood" enctype="multipart/form-data">
			<table border="1" width="599">
			<tr><td colspan="2" align="center">添加美食</td></tr>
			<tr>
				<td>名称:</td>
				<td><input type="text" name="fname" /></td></tr>
			<tr>
				<td>分类:</td>
				<td>
				<select name="tid" class="dfinput">
					<option value="-1">请选择</option>
					<option th:each="type:${typeList}" th:value="${type.getTid()}">[(${type.getTname()})]</option>
				</select></td>
			</tr>
			<tr><td>图片:</td><td><input type="file" name="file" /></td></tr>
			<tr><td colspan="2"><input type="submit" value="添加" /><input type="reset" value="重置" /></td></tr>
			</table>
		</form>
	</body>
</html>
